import matplotlib.pyplot as plt
from matplotlib.cbook import get_sample_data
from matplotlib.patches import Circle

with get_sample_data("/Users/mr.stark/Desktop/1.jpg") as imageFile:
    # 将imageFile转换成数组array
    imageArray = plt.imread(imageFile)

fig, ax = plt.subplots(1, 1)
# 调用坐标轴实例方法imshow将图像数组添加到坐标轴
ai = ax.imshow(imageArray)

print(imageArray.shape)
print(type(imageArray))

patch = Circle((200, 150), radius=200, transform=ax.transData)
ai.set_clip_path(patch)

ax.set_axis_off()
plt.show()